*{
  padding: 0;
  margin: 0;
}

body{
  margin: 0;
  overflow: hidden;
}

.chat-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  height: 100vh;
}

.chat-header {
  background-color: #f2f2f2;
  padding: 10px;
  text-align: center;
}

.chat-messages {
  background-color: #ccc;
  flex: 1;
  overflow-y: scroll;
  padding: 10px;
}
.messages{
  overflow: scroll;
}

.chat-messages li {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.chat-messages li .message {
  padding: 10px;
  border-radius: 5px;
  max-width: 70%;
  word-wrap: break-word;
}

.chat-messages li .message.sent {
  background-color: #4CAF50;
  color: white;
  align-self: flex-end;
}

.chat-messages li .message.received {
  background-color: #f2f2f2;
  color: black;
  align-self: flex-start;
}

.chat-messages li .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-messages li .name {
  font-weight: bold;
  margin-bottom: 5px;
}

.chat-input {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 10px;
  /* position: fixed; */
  /* bottom: 0; */
}

.chat-input input {
  flex: 1;
  padding: 0 10px;
  border-radius: 5px;
  height: 40px;
  border: 1px solid #ccc;
  margin-right: 10px;
  box-sizing: border-box;
}

.chat-input button {
  height: 40px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #3e8e41;
}
